﻿using OpenQA.Selenium.Firefox;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace TesitooTestFramework
{
    public class OpenHomePage
    {
        public void Go()
        {
            var driver = new FirefoxDriver();
            driver.Navigate().GoToUrl("http://104.155.84.193/");
        }
    }

    public class SearchBox
    {
        public void PerformSearch(string searchterm)
        {
            var driver = new FirefoxDriver();
            driver.Navigate().GoToUrl("http://104.155.84.193/");
            driver.FindElementByName("search").Clear();
            driver.FindElementByName("search").SendKeys(searchterm);
            driver.FindElementByClassName("btn btn-default btn-lg").Click(); //got to find this by unique element type!! XPATH?

        }
    }


}
